﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/static/css/common/reset.css" />
    <link rel="stylesheet" href="/static/css/associate.css" />
    <link rel="stylesheet" href="/static/css/sweetalert.min.css" />
    <link rel="stylesheet" href="/static/js/simditor/styles/simditor.css" />
    <link rel="stylesheet" href="/static/js/simditor/styles/simditor-html.css" />
    <link rel="stylesheet" href="/static/css/jquery-validate.css" />
    <title>修改负责人信息</title>
</head>
<body>
    <div class="associate">
        <div id="divHeader"></div>
        <section class="assoc-content container clearfix">
            <div class="assoc-c-left fl">

                <div id="divNavigation"></div>
            </div>
            <div class="assoc-c-right fr">
                <div class="assoc-cr-resiveInfo " ng-app="myApp" ng-controller="ctrlreviseinfo" ng-model="names">
                    <form id="secondStepForm">
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>姓名：</label>
                            <div class="form_control">
                                <input type="text" class="required" data-tip="请输入姓名" data-valid="isNonEmpty" data-error="姓名不能为空" placeholder="请输入姓名" value={{names.StudentName}} name="name" />
                            </div>
                        </div>

                        <div class="reg-tcom-item mt10 clearfix">
                            <label>院系：</label>
                            <div class="form_control">
                                <input type="text" class="required" data-valid="isNonEmpty" data-tip="请输入院系" data-error="院系不能为空" placeholder="请输入院系" value={{names.Major}} name="Major" />
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 charge clearfix">
                            <label>入学年份：</label>
                            <div class="form_control">
                                <select style="width: 194px;" class="required" data-valid="isNonEmpty" data-error="请选择入学年份" name="EntranceDate">
                                    <option value="2017-09-01 00:00:00">2017年</option>
                                    <option value="2016-09-01 00:00:00">2016年</option>
                                    <option value="2015-09-01 00:00:00">2015年</option>
                                    <option value="2014-09-01 00:00:00">2014年</option>
                                    <option value="2013-09-01 00:00:00">2013年</option>
                                    <option value="2012-09-01 00:00:00">2012年</option>
                                    <option value="2011-09-01 00:00:00">2011年</option>
                                    <option value="2010-09-01 00:00:00">2010年</option>
                                    <option value="2009-09-01 00:00:00">2009年</option>
                                    <option value="2008-09-01 00:00:00">2008年</option>
                                </select>
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>学历：</label>
                            <div class="form_control">
                                <select name="Education" class="required" data-valid="isNonEmpty" data-tip="请选择学历" data-error="请选择学历">
                                    <option value="">请选择学历</option>
                                    <option value="大专">大专</option>
                                    <option value="本科">本科</option>
                                    <option value="研究生">研究生</option>
                                    <option value="博士生">博士生</option>
                                </select>
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>学号：</label>
                            <div class="form_control">
                                <input type="text" class="required" data-valid="isNonEmpty||onlyInt" data-tip="请输入学号" data-error="学号不能为空||学号格式不正确" placeholder="请输入学号" value={{names.StudentLDNO}} name="StudentLDNO" data-rule-number="true" />
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>手机：</label>
                            <div class="form_control">
                                <input type="tel" class="required" data-valid="isNonEmpty||isMobile" data-tip="请输入手机" data-error="手机不能为空||手机格式不正确" placeholder="请输入手机" value={{names.Phone}} name="phone" data-rule-mobile="true" />
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>QQ：</label>
                            <div class="form_control">
                                <input type="tel" class="required" data-valid="isNonEmpty||onlyInt" data-tip="请输入QQ" data-error="QQ不能为空||QQ格式不正确" placeholder="请输入QQ" value={{names.QQ}} name="qq" data-rule-number="true" />
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>微信：</label>
                            <div class="form_control">
                                <input type="tel" class="required" data-valid="isNonEmpty" data-tip="请输入微信" data-error="微信不能为空" placeholder="请输入微信" value={{names.WeChart}} name="wechart" />
                            </div>
                        </div>
                        <div class="reg-tcom-item mt10 clearfix">
                            <label>邮箱：</label>
                            <div class="form_control">
                                <input type="tel" class="required" data-valid="isNonEmpty||isEmail" data-tip="请输入邮箱" data-error="邮箱不能为空||邮箱格式不正确" placeholder="请输入邮箱" value={{names.Email}} name="email" data-rule-email="true" />
                            </div>
                        </div>
                        <input type="button" class="assoc-crb-btn" value="确认修改" id="submit" />
                    </form>
                </div>
            </div>
        </section>
    </div>
    <div id="divFooter"></div>
    <script type="text/javascript" src="/static/js/ref/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/static/js/self/common.js"></script>
    <script type="text/javascript" src="/static/js/ref/angular.min.js"></script>
    <script type="text/javascript" src="/static/js/ref/sweetalert.min.js"></script>
    <script src="/static/js/ref/sha512.js"></script>
    <script src="/static/js/ref/jquery.validate.js"></script>
    <script src="/static/js/ref/linq.min.js"></script>
    <script src="/static/js/self/jquery-validate.js"></script>
    <script>

        common.validator($('form'));

        $("#divHeader").load("/wuc/header.html");
        $("#divFooter").load("/wuc/footer.html");
        $("#divNavigation").load("/wuc/navigation.html");

        common.CreateController({ name: 'ctrlreviseinfo', url: '/api/student/GetStuInfo', objType: 'dict' });
        common.ValidateFormJQ('secondStepForm', 'submit', submitSecondStep)
        function submitSecondStep() {
            common.FormAjax({ type: 'Post', url: '/api/Student/UpdateStudent', ID: "secondStepForm", sMethod: AfterAjax });
        };
        function AfterAjax(ctx) {

            if (ctx == null) {
                common.alertMessage("无数据.");
                return;
            }

            var str = ctx.ResponseStr.toString();
            switch (str) {
                case "OK":
                    window.location = "./incharge.html";
                    break;
            }
        }
    </script>
</body>
</html>

